import {connect}from 'react-redux'
import Shangpinxq from '../ui/index'
import {setshopinfo} from '../actioncreater/shangpinxqCreater'
const mapStateToProps=(state)=>{
    return {
        // restaurantId:'3307'
        shopinfo:state.cartReducer.currentshopinfo,
    }
}
const mapDispatchToProps=(dispatch)=>{
    return {
        setcurrentshopinfo(currentshopinfo){
            // console.log(currentshopinfo)
            dispatch(setshopinfo(currentshopinfo))
        }
    }
}
export default connect(mapStateToProps,mapDispatchToProps)(Shangpinxq)